import React,{useEffect} from "react";
import StackNavigator from "@/routes/stackNavigation";
import {Provider} from 'react-redux';
import store from '@/config/dva';
import '@/config/http';
import { AMapSdk } from "react-native-amap3d";
import { Platform} from 'react-native';

const TabNavigatorWithDva =()=>{
  useEffect(() => {
//   AMapSdk.setApiKey(
//     Platform.select({
//       android: "c52c7169e6df23490e3114330098aaac",
//       ios: "186d3464209b74effa4d8391f441f14d",
//     })
//   );
    AMapSdk.init(
      Platform.select({
        android: '5c6fa50e065b5c77d22e6162667c2b15',
        ios: '186d3464209b74effa4d8391f441f14d',
      }),
    );
  }, []);
    return (
      <Provider store={store}>
        <StackNavigator/>
      </Provider>
    )
  }

export default TabNavigatorWithDva;